<?
require_once('phpbigtable.php');
echo "*** Modify email of user ".USER." ... \n";
$q = new Query('User');
$ds = java_class('DatastoreServiceFactory')->getDatastoreService();
$q->addFilter('name','EQUAL',USER);
$results = $ds->prepare($q);
$e1 = $results->asSingleEntity();

// now modifying
$e1->setProperty('email','newemail@foo.org');
echo "  id: ".$e1->getKey()->toString()."\n";
// committing to the datastore
$ds->put($e1);
?>
